package model;

public class Video {
    private final String id;
    private final String title;
    private final String filePath;
    private final String uploadTime;
    private int viewCount;

    public Video(String id, String title, String filePath) {
        this.id = id;
        this.title = title;
        this.filePath = filePath;
        this.uploadTime = java.time.LocalDateTime.now().toString();
        this.viewCount = 0;
    }

    // Getters and Setters
    public String getId() { return id; }
    public String getTitle() { return title; }
    public String getFilePath() { return filePath; }
    public String getUploadTime() { return uploadTime; }
    public int getViewCount() { return viewCount; }

    //public void setTitle(String title) { this.title = title; }
    public void incrementViewCount() { this.viewCount++; }
}

